package com.vue3.blog.web;

import com.vue3.blog.common.resp.Result;
import com.vue3.blog.service.IStatService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author Mr.小朱同学
 * @version 1.0.0
 * @date 2025/6/25 12:07
 * @description 统计控制器
 */
@RequestMapping("/api/stat")
@RestController
public class StatController {
    @Resource
    private IStatService statService;


    @GetMapping("/article/comment/amount")
    public Result<?> getArticleCommentInfoStat() {
        return Result.success("前台-文章数、评论数", statService.getArticleCommentInfoStat());
    }

}